﻿(function ($) {
    var m_pageParameter = {};

    // uesage:
    // 1. $.fn.szjt_pageParameter({....})  ==> to set(overwrite) page parameters;
    // 2. $.fn.szjt_pageParameter("para",xValue) ==> to chage one parameter with name is "para", new value is xValue;
    // 3. $.fn.szjt_pageParameter("para") ==> to get the "para" parameter value;
    // 4. $.fn.szjt_pageParameter() ==> to get all pape parameters.
    $.fn.szjt_pageParameter = function (options, param) {
        if (options == undefined) {
            return m_pageParameter;
        }

        if (typeof options == "string") {
            if (param == undefined) {
                return m_pageParameter[options];
            } else {
                m_pageParameter[options] = param;
            }
        }
        else {
            m_pageParameter = options;
        }
    }
})(jQuery);
